Hello and welcome to this lecture.
In this lecture we'll be creating variables for the paddle's right and left movement.
So what we're trying to do is store some information one capture some information when the right keyboard
a button is pressed or when the left keyboard or button is pressed.
We want that recorded in a variable.
All right let's create two variables that will capture or store information when they are right or left.
Control button or keyboard is pressed.
So the first one to create is where the rest of the variables are.
This is my scrip So I just tab down and defined a variable with the word var the heart.
And I'm going to call it right
Prest
always a good idea to name a variable as closely as possible to the action you're trying to represent.
So this variable is called right.
Pressed it will capture or any information when the right button or the right keyboard rule is pressed.
So value will be false.
This is a bully and value bullion value remains is either true or false.
The default is false because when the button or the right keyboard is at rest there is no it no information
is stored will not happen.
Hence it is false.
The moment it begins or capture some information then it becomes true.
So let's create a variable for the left breast key.
So type in
left
breast and the value will be force.
The default for this too is false because when nothing happens when it's at rest there is no activity
as it is force so there's nothing to store in the variable.
The moment there is activity when you start pressing the right button or the right keyboard arrow then
very it changes dutroux which means there is some activity class sit for this lecture.
We have created two extra variables that will store information relating to rights key board control
or right button control.
Similarly with l.f. keep us control or left button control so when either the right or left key pressed
it will store some information what the default value is false because when it is resting nothing happens
so there's no need to capture any information.
Thank you so much for your time.
Bye for now.